import { request, BASE_URL } from '@/api/request'; // 引入封装好的request
// 政府项目帖子列表
function getDymicList(data) {
	return request({
		method: "GET",
		url: "/api/index/getDymicList",
		data: data,
	})
}
// 评论
function makeComment(data) {
	return request({
		method: "POST",
		url: "/api/user/makeComment",
		data: data,
	})
}
// 获取帖子详情
function dymicinfo(data) {
	return request({
		method: "GET",
		url: "/api/index/dymicinfo",
		data: data,
	})
}
// 获取评论列表 /api/index/comment
function comment(data) {
	return request({
		method: "GET",
		url: "/api/index/comment",
		data: data,
	})
}
// 获取我的帖子列表 /api/user/getMyDymicList
function getMyDymicList(data) {
	return request({
		method: "GET",
		url: "/api/user/getMyDymicList",
		data: data,
	})
}
// 发布帖子 /api/user/addSend
function addSend(data) {
	return request({
		method: "POST",
		url: "/api/user/addSend",
		data: data,
	})
}
// 删除帖子 /api/index/deleteDymic
function deleteDymic(data) {
	return request({
		method: "POST",
		url: "/api/index/deleteDymic",
		data: data,
	})
}
// 留言评论 /api/user/getMyCommentList
function getMyCommentList(data) {
	return request({
		method: "GET",
		url: "/api/user/getMyCommentList",
		data: data,
	})
}
export {
	getDymicList,
	makeComment,
	dymicinfo,
	comment,
	getMyDymicList,
	addSend,
	deleteDymic,
	getMyCommentList
}

